package com.example.lib_cache.viewmodel;

import android.util.Log;

import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

import com.example.lib_cache.model.User;
import com.example.lib_common.util.LiveDataManager;

public class IndexActivityViewModel extends ViewModel {
    private MutableLiveData<User> userMutableLiveData;
//    private User user;

    public MutableLiveData<User> getUser(){
        return userMutableLiveData;
    }

    public void setUser(User user){
        this.userMutableLiveData = LiveDataManager.getInstance().with("user",User.class);
        this.userMutableLiveData.postValue(user);
    }

    public void showLoginUser(){

    }
}
